﻿@model List<Paper>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>审阅试卷列表</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
    <div class="container mt-5">
        <h2>所有试卷</h2>
        <table class="table table-hover">
            <thead>
                <tr>
                    <th>试卷名称</th>
                    <th>审核状态</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                @foreach (var paper in Model)
                {
                    <tr>
                        <td>@paper.paper_name</td>
                        <td>@paper.paper_status</td>
                        <td>
                        <a asp-controller="Paper" asp-action="JudgePaper" asp-route-paperId="@paper.paper_id" class="btn btn-primary">
                            审阅
                        </a>
                        </td>
                    </tr>
                }
            </tbody>
        </table>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
